var Event = new Vue();
let app = new Vue({
    el: "#app",
    data() {
        return {
			isSideHide:false,
			menu:[],
			urlroute:"main.html"
        }
    },
	methods: {
	},
	async created(){
		
	},
	async mounted() {
		// 加载菜单栏
		result = await axios.get('api/menu/'+localStorage.getItem('USERID'));
		this.menu = result.data;

		Event.$on('sideevent',function(hide){
			this.isSideHide= hide;
		}.bind(this))
		Event.$on('urlevent',function(url){
			this.urlroute= url;
		}.bind(this))

	}

});	